﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strongshell.Recoil.Core.Composition.Parsing;

namespace Strongshell.Recoil.Core.Composition.Workflow
{
    public class FragmentContext
    {
        private readonly ObjectConfiguration objectConfiguration;
        private readonly IObjectNameFactory nameFactory;
        private readonly IExpressionParserFactory expressionParserFactory;
        private readonly IObjectConfigurationRegistry objectConfigurationRegistry;

        public ObjectConfiguration ObjectConfiguration
        {
            get { return objectConfiguration; }
        }

        public IObjectNameFactory NameFactory
        {
            get { return nameFactory; }
        }

        public IExpressionParserFactory ExpressionParserFactory
        {
            get { return expressionParserFactory; }
        }

        public IObjectConfigurationRegistry ObjectConfigurationRegistry
        {
            get { return objectConfigurationRegistry; }
        }

        public FragmentContext(ObjectConfiguration objectConfiguration, IObjectNameFactory nameFactory, IExpressionParserFactory expressionParserFactory, IObjectConfigurationRegistry objectConfigurationRegistry)
        {
            this.objectConfiguration = objectConfiguration;
            this.nameFactory = nameFactory;
            this.expressionParserFactory = expressionParserFactory;
            this.objectConfigurationRegistry = objectConfigurationRegistry;
        }
    }
}
